"""道长"""

"""
@pytest.fixture或者@pytest.fixture(scope='function')
"""
"""场景一：作为参数传入"""
import pytest

class TestLogin():

    #传入loginfixture
    def test_01(self,login):
        print("001传入了login fixture")

    #传入logoutfixture
    def test_02(self,logout):
        print("002传入了logout fixture")

    def test_03(self,login,logout):
        print("003传入了两个fixture")

    def test_04(self):
        print("004未传入任何fixture哦")

if __name__ == '__main__':
    pytest.main()